import request from "@/utils/request";

/**
 * 获取用户信息
 * @param params
 * @returns
 */
export function getInfo(params) {
  return request({
    url: '/management/common/getMineInfo',
    method: 'post',
    params
  })
}

/**
 * 获取用户权限
 * @param params
 * @returns
 */
export function getSelfRoleNode(params) {
  return request({
    url: '/management/common/getSelfRoleNode',
    method: 'post',
    params
  })
}

/**
 * 重置密码
 * @param params
 * @returns
 */
export function updatePassword(params) {
  return request({
    url: '/management/auth.auth_manager/updatePassword',
    method: 'post',
    params
  })
}
/**
 * 重置登入账号密码
 * @param params
 * @returns
 */
export function updateSelfPwd(params) {
  return request({
    url: '/management/auth.auth_manager/updateSelfPwd',
    method: 'post',
    params
  })
}